package com.sl.applogic;


import ru.yandex.qatools.allure.annotations.Step;

import com.sl.pages.AnyForm;
import com.sl.pages.PageManager.Form;



/**
 * Класс реализует логику, при использовании форм AdminUI
 * @author dgrigoriev
 *
 */
public class FormHelper extends DriverBasedHelper{
	
	public FormHelper(ApplicationManager applicationManager){
		super(applicationManager.getWebDriver());		
	}
	
@Step("Deleted card")
	public void deleteCard(Form form){
		AnyForm page = pageManager.getPage(form);
		page
		.clearningTabs()
		.delete()
		.clickYes()
		.ensurePageLoaded();
	}
}

